home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / DataSave / Sources / Pizza.h < prev    next >
Encoding:
Text File  |  1996-03-05  |  1.1 KB  |  39 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995-96 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ ODF 1 $
  3.  
  4. #ifndef PIZZA_H
  5. #define PIZZA_H
  6.  
  7. //==========================================================================
  8. // ----- Foundation Layer -----
  9. #ifndef FWRUNTYP_H
  10. #include "FWRunTyp.h"
  11. #endif
  12.  
  13. //==========================================================================
  14. class FW_CRect;
  15. class CPizzaODFPart;
  16.  
  17. //==========================================================================
  18. class CPizza {
  19. public:
  20.     FW_DECLARE_CLASS
  21.                         CPizza(FW_CRect bounds);
  22.     virtual                ~CPizza();
  23.     virtual void        Draw(FW_CGraphicContext& gc);
  24.     FW_CRect            GetBounds();
  25. // Persistence members
  26.     static void*         Read(FW_CReadableStream& stream, 
  27.                                 FW_ClassTypeConstant type);
  28.     static void         Write(FW_CWritableStream& stream, 
  29.                                 FW_ClassTypeConstant type, 
  30.                                 const void *object);
  31. protected:
  32.                         CPizza(FW_CReadableStream& stream);
  33.     virtual void         Flatten(FW_CWritableStream& stream);
  34. private:
  35.     FW_CRect            fBounds;
  36. };
  37.  
  38. //==========================================================================
  39. #endif